package com.lx.screenshot.util;

import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;

public class ClipboardUtil {
    public static void add(Context context, String text){
        ClipboardManager manage = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);
        ClipData clipData = ClipData.newPlainText("transText", text);
        manage.setPrimaryClip(clipData);
    }
}
